import request from '@/utils/request'

//交友首页列表
export const queryJYUserPersonalsList = (params) => {
  return request('GET', '/app/jy/userPersonals/list', params)
}


//交友标签列表
export const queryLabelList = (params) => {
  return request('GET', '/app/jy/label/list', params)
}

//添加交友资料
export const friendInfoAdd = (params) => {
  return request('POST', '/app/jy/userPersonals', params)
}

//编辑交友资料
export const updateFriendInfo = (params) => {
  return request('PUT', '/app/jy/userPersonals', params)
}

//交友明细
export const FriendInfoDetail = (id) => {
  return request('GET', `/app/jy/userPersonals/${id}`)
}

//userid查交友明细
export const personFriendInfo = (params) => {
  return request('GET', '/app/jy/userPersonals/user', params)
}

//支付相册
export const payPhoto = (params) => {
  return request('POST', '/app/jy/userAlbum/payment', params)
}
//支付聊天
export const payChat = (params) => {
  return request('POST', '/app/jy/userPersonals/chat/payment', params)
}

//删除交友信息
export const delChat = (params) => {
  return request('DELETE', '/app/jy/userPersonals/del', params)
}

//获取保证金
export const getBondInfo = (params) => {
  return request('GET', '/app/jy/userPersonals/bond', params)
}

// 根据用户id获取交友详情
export const queryOtherUserChatDetail = (params) => {
  return request('GET', `/app/jy/userPersonals/user/${params}`)
}

// 获取费率
export const queryFeePercent = (configKey) => {
  return request('GET', `/app/system/config/configKey/${configKey}`)
}